package com.anlu.pattern.structrue.proxy;

import com.anlu.pattern.common.service.OrderService;
import com.anlu.pattern.common.service.impl.OutOrderServiceImpl;

public class ProxyOrder implements OrderService {

    /**
     *
     */
    private OrderService orderService = (OrderService) new OutOrderServiceImpl();

    @Override
    public int saveOrder() {
        System.out.println("开始海外下订单");
        return orderService.saveOrder();
    }
}
